﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WinFormsApp1
{
    public class Neo4JJSON
    {
        public List<Neo4JData> results { get; set; }=new List<Neo4JData>();
    }

    public class Neo4JData
    {
        public List<string> columns { get;set; }=new List<string>();
        public List<Neo4JGraphData> data { get; set; } = new List<Neo4JGraphData>();
    }
    public class Neo4JGraphData
    {
        public Neo4JGraph graph { get; set; }
    }
    public class Neo4JGraph
    {
        public List<Neo4JNode> nodes { get; } = new List<Neo4JNode>();
        public List<Neo4JRelationship> relationships { get; } = new List<Neo4JRelationship>();
    }
    public class Neo4JNode
    {
        public string id { get;set; }
        public List<string> labels { get; set; }
        public Dictionary<string, string> properties { get; set; }
    }
    public class Neo4JRelationship
    {
        public string id { get; set; }
        public string type { get; set; }
        public string startNode { get; set; }
        public string endNode { get; set; }
        public Dictionary<string,string> properties { get; set; }
    }

}
